package cn.com.dcsgo.service.impl;

import cn.com.dcsgo.service.Calculator;
import org.springframework.stereotype.Component;

/**
 * CalculatorPureImpl
 *
 * @author Dcsgo
 * @since 2025/2/6 8:39
 */
@Component
public class CalculatorPureImpl implements Calculator {
    @Override
    public int add(int i, int j) {
        return i + j;
    }

    @Override
    public int sub(int i, int j) {
        return i - j;
    }

    @Override
    public int mul(int i, int j) {
        return i * j;
    }

    @Override
    public int div(int i, int j) {
        return i / j;
    }
}
